<div ng-controller="CommentCtrl">
    <div class="blog_rtop" style="overflow:hidden;clear:both;">
        <div class="blog_title"> 评论</div>
    </div>

    <div class="blogadd_review">
        <textarea class="blogreview_detail" ng-model="newComment.content"></textarea>
        <div class="blogreview_add">
            <span style="font-size:14px;">还可以输入{{140 - newComment.content.length}}字</span>
            <a ng-click="addComment('blog')" style="cursor: pointer">
                <div class="blogadd_textadd" style="position:static;float:right;"> 发表评论</div>
            </a>
        </div>
    </div>

    <div class="weibo_arti">
        <div class="weibo_article" ng-repeat="comment in comments">
            <div style="height:10px;width:700px;position:relative;float:left;"></div>
            <div class="weibo_art01" style="border:none;">
                <div class="weibo_art0101"><a href=""><img ng-src="{{comment.author.photoUri}}"></a></div>
                <div class="weibo_art0100">
                    <div class="weibo_art0102"><span style="color:#1E579C">{{comment.author.name}}：</span>
                        {{comment.content}}
                        <div class="weibo_art0103"> {{comment.createTime.$date | date: 'yyyy-MM-dd HH:MM:ss'}}
                            <div class="weibo_art0104">
                                <a href="" ng-click="openReply(comment)"> 回复（{{comment.comments.length}}） </a>&nbsp;|&nbsp;
                                <a href=""> 删除 </a>
                            </div>
                        </div>
                        <div ng-show="comment.needReply" ng-init="comment.needReply = false">
                            <textarea class="blogreview_detail" style="width: 600px;" ng-model="comment.newReply"></textarea>
                            <a style="float:left;cursor: pointer;margin-right: 20px;" ng-click="addReply(comment, comment)">提交</a>
                            <a style="float:left;cursor: pointer" ng-click="closeReply(comment)">关闭</a>
                        </div>
                    </div>

                    <div ng-repeat="reply in comment.comments">
                        <div class="weibo_re00" style="height:10px"></div>
                        <div class="weibo_re00">
                            <div class="weibo_art0101"><a href=""> <img ng-src="{{reply.author.photoUri}}"></a></div>
                            <div class="weibo_re01">
                                <span style="color:#1E579C">
                                    <a href="" style="color:#1E579C">{{reply.author.name}}</a><span ng-show="reply.object">回复{{reply.object.name}}</span>：
                                </span>
                                {{reply.content}}
                                <div class="weibo_re02"> {{reply.createTime.$date | date: 'yyyy-MM-dd HH:MM:ss'}}
                                    &nbsp;&nbsp; <a href="" style="color:#1E579C" ng-click="openReply(reply)">回复</a>
                                </div>
                            </div>
                        </div>
                        <div ng-show="reply.needReply" ng-init="reply.needReply = false">
                            <textarea class="blogreview_detail" style="width: 600px;" ng-model="reply.newReply"></textarea>
                            <a style="float:left;cursor: pointer;margin-right: 20px;" ng-click="addReply(reply, comment)">提交</a>
                            <a style="float: left;cursor: pointer" ng-click="closeReply(reply)">关闭</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div ng-pagination ng-model="totalCount" class="home_div_leftb" style="height:60px;width:720px;left: 23px;"></div>
</div>
